Canonical Abstract Syntax Trees
نویسنده
چکیده
This paper presents GOM, a language for describing abstract syntax trees and generating a Java implementation for those trees. GOM includes features allowing to specify and modify the interface of the data structure. These features provide in particular the capability to maintain the internal representation of data in canonical form with respect to a rewrite system. This explicitly guarantees that the client program only manipulates normal forms for this rewrite system, a feature which is only implicitly used in many implementations.
منابع مشابه
Abstract Syntax Trees - Lecture 14 Sections 5.1 - 5.4
Syntax Trees Robb T. Koether Abstract Syntax Trees Synthesized Attributes Inherited Attributes Expression Trees Assignment Abstract Syntax Trees Lecture 14 Sections 5.1 5.4 Robb T. Koether Hampden-Sydney College
متن کاملThe GF Grammar Compiler
GF (Grammatical Framework) is a grammar formalism based on the distinction between abstract and concrete syntax. An abstract syntax is a free algebra of trees, and a concrete syntax is a mapping from trees to nested records of strings and features. These mappings are naturally defined as functions in a functional programming language; the GF language provides the customary functional programmin...
متن کاملMultiple views based on unparsing canonical representations – the MultiView architecture
Across a range of software development activities, there i s typically no single best way to view the abstractions o f interest, where the latter include software objects (such as source code), aspects of program execution, software requirements documentation, models of a software process being followed, and many others. Thus, mechanisms which provide automated support for multiple views have t...
متن کاملElements of Programming Languages Lecture
Syntax Trees (ASTs) We view a BNF grammar to define a collection of abstract syntax trees, for example:
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Electr. Notes Theor. Comput. Sci.
دوره 176 شماره
صفحات -
تاریخ انتشار 2007